import mitt from "mitt";
const bus = {};
const emitter = mitt();
//on监听
bus.on = emitter.on;
//off移除
bus.off = emitter.off;
//emit触发
bus.emit = emitter.emit;
bus.delete = emitter.all.delete;
export default bus;